The defaultRedirect attribute can be used when the error mode is either. “RemoteOnly” or “On.” Let's create a error page named “error.aspx” that displays the ...
customErrors can be configured within the Machine.config, root web.config or your application's web.config file. Usually, it is set in the web.config file for ...
We should turn custom error to On in release mode and turn it off in debug. To automatically do this, we can use web.config transformation like the following ...